#ifndef MAGIC_H
#define MAGIC_H

#include <QObject>
#include <QDebug>
#include "bass.h"
#include "bassenc.h"

class Magic : public QObject
{
    Q_OBJECT
public:
    int recordsCount;
    QString recordName;

    int input;
    HRECORD rchan;
    HENCODE hencode;		// encoder handle

    explicit Magic(QObject *parent = 0);

    void record();
    void stop();

    void getDevices();
    BOOL InitDevice(int);
    void UpdateInputInfo();
signals:
    void devices(QStringList);
    void newRecord(QString name);

public slots:
};

#endif // MAGIC_H
